import React, {useEffect, useState } from 'react'
import Navbar from '../../compoents/Navbar'
import { useNavigate } from 'react-router-dom'
import request from '../../api/request'
function Index() {
    const navigate = useNavigate()

    // 

    const [yaoList,setYaoList] = useState([])

    const getYaoList = async ()=>{
        const res = await request.get('/api/restorative/detail',{
            params:{
                id:1
            }
        })
        console.log('111',res);
        
    }

    useEffect(()=>{
        getYaoList()
    },[])
  return (
    <div>
      <Navbar title='复方药详情'  showBack onBack={()=>navigate(-1)} />

        <div>

         


        </div>
    </div>
  )
}

export default Index
